package demo01;

public class Chengxu27 {
	public static void main(String[] args) {
		for (int i = 2;i <= 100; i++){
			if(isShusu(i)){
				System.out.println(i);
			}
		}
	}

	private static boolean isShusu(int num) {
		for (int i = 2; i <= Math.sqrt(num); i++){
			if (num == 2){
				return true;
			}
			if(num % i == 0){
				return false;
			}
		}
		return true;
	}
}
